{% extends "base.html" %}

{% block header%}
<title>版本配置编辑</title>
{% endblock %}

{% block content %}
{% with model_name='Version' url_prefix='/pack/version/version' %}
<div class="bar">
	<a>版本管理</a> -> 版本配置编辑
	<div class="buttons">
		<a  class="btn btn-app btn-grey btn-xs radius-4 pull-right submit"  />打包</a>
	</div>
</div>

<form action="{{url_prefix}}?id={{model.id}}" method="post">
	<table class="form2">
{#    <tr>#}
{#        <th>项目：</th>#}
{#        <td>#}
{#            <input type="text" name="pro_name" value="{{model.branch.project.pro_name}}" />#}
{#        </td>#}
{#	</tr>#}
    <tr>
        <th>版本号：</th>
        <td>
            <input type="text" name="ver_name" value="{{model.ver_name}}" {% if redo %}disabled="disabled"{% endif %}/>
        </td>
	</tr>
	<tr>
        <th>分支名称：</th>
        <td>
            <select id="bra_tuple_select" name="branch" {% if redo %}disabled="disabled"{% endif %}>
                {% for id, name in bra_tuple %}
                    <option value="{{id}}" {% if model.branch.id == id %}selected="selected"{% endif %}>{{name}}</option>
                {% endfor %}
            </select>
        </td>
	</tr>
	<tr>
        <th>平台:</th>
        <td>
            <select id="os_type_select" name="os_type" {% if redo %}disabled="disabled"{% endif %}>
                {% for v,n in os_type %}
                    <option value="{{v}}" {% if model.os_type == v %}selected="selected"{% endif %}>{{n}}</option>
                {% endfor %}
            </select>
        </td>
    </tr>
    <tr>
        <th>SVN版本号：</th>
        <td>
            <input type="text" name="res_svn" value="{{model.res_svn}}" {% if redo %}disabled="disabled"{% endif %}/>
        </td>
	</tr>
{#	<tr>#}
{#        <th>状态:</th>#}
{#        <td>#}
{#            <select id="state_type_select" name="state">#}
{#                {% for v,n in state_type %}#}
{#                    <option value="{{v}}" {% if model.state == v %}selected="selected"{% endif %}>{{n}}</option>#}
{#                {% endfor %}#}
{#            </select>#}
{#        </td>#}
{#    </tr>#}
</table>
</form>
{% endwith %}
{% endblock %}